<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <load href="__PUBLIC__/css/lwy2011.css" />
    <load href="__PUBLIC__/Css/common.css" />
    <script type="text/javascript" src="__ROOT__/Public/Js/jquery-1.5.0.min.js"></script>
    <script type="text/javascript" src="__ROOT__/Public/Js/core.js"></script>
    <script>
      function getList(){
        //alert($('#page').val());
        var type=$("input[name='type']:checked").val();
        if(type=='1')
          $('#tips').html('输入文章标题');
        else if(type=='2')
          $('#tips').html('输入用户账号');
        else
          $('#tips').html('输入博文标题');
		   
        $.post(
        '__URL__/recommendAjax',
        {
          'id':$('#id').val(),
          'page':$('#page').val(),
          'type':type,
          'keyword':$('#keyword').val()
        },
        function(data){
          //document.write(data);
          $('#result').html(data);
        },
        'html'
      );
        return false;
      }
  
      function jumpTo(num){
        $('#page').val(num);
        ///alert('a'+num);
        getList();
      }
      $(document).ready(
      function(){
        getList();
      });
    </script>
    <title>文章列表页</title>
    <script>

    </script>
  </head>
  <body >

    <div style="width:960px; margin:5px auto; text-align:center;">
      <layout name="Public:sns-header" cache="0" />
      <div style="width:80%; float:left; background-color:#FFF">
        <table width="100%" border="0" align="center">
          <tr align="center">
            <td colspan="2" align="left">当前位置:<font color="#FF0000">{$item['name']}</font>推荐内容增加</td>
          </tr>
          <tr align="center">
            <td width="117" align="right">添加内容类型</td>
            <td align="left">
              <label><input name="type" type="radio" value="1" checked="checked" onclick=""/>
                群组文章</label>
              <label><input name="type" type="radio" value="2" onclick=""/>社区用户</label>
              <label><input name="type" type="radio" value="3" onclick=""/>用户博文</label>            </td>
          </tr>
          <tr align="center">
            <td width="117" align="right"><span id="tips">输入文章标题</span></td>
            <td align="left"><label>
                <input type="hidden" id="id" name="id" value="{$id}"/>
                <input type="hidden" id="page" name="page" value="1"/>
                <input type="text" id="keyword" name="keyword"/>
              </label>            <label>&nbsp;&nbsp;
                <input type="submit" name="Submit" value="查找" onclick="return getList();"/>
              </label></td>
          </tr>
        </table>
        <div id="result" style="margin:10px auto;width:760px;" >

        </div>

      </div></div>

  </body>
</html>
